﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="/Plugin/layui/css/layui.css" rel="stylesheet" />
    <link href="/Style/common.css" rel="stylesheet" />
    <title>微信关键词设置</title>
    <style>
        #formsearch .layui-form-item {
            margin-bottom: 0px;
        }

        #formsearch .layui-form-item .layui-inline {
            margin: 0px;
        }

        #formsearch .layui-form-item .layui-input-inline {
            margin: 0px;
        }

        @media screen and (max-width: 450px) {
            #formsearch .layui-form-item .layui-input-inline {
                margin: 0 0 10px 0px;
            }
        }
    </style>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-row">
            <div class="layui-col-sm12" style="padding-right:1px;margin-top:18px;">
                <form class="layui-form" id="formsearch" lay-filter="formsearch">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <div class="layui-input-inline">
                                <input type="text" name="keywords" id="keywords" lay-filter="keywords" autocomplete="off" class="layui-input" placeholder="输入关键字">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <div class="layui-input-inline" style="width:auto;">
                                <div class="layui-btn-group">
                                    <button type="button" class="layui-btn" lay-submit id="btnsearch" lay-filter="btnsearch">
                                        <i class="layui-icon layui-icon-search"></i>
                                        检索
                                    </button>
                                    <button type="button" class="layui-btn" id="btnaddkeywords" lay-filter="btnaddkeywords">
                                        <i class="jhyicon jhy-icon-add"></i>
                                        创建关键词
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-sm12" style="padding-right:1px;">
                <table class="layui-table" id="tablekeywords" lay-filter="tablekeywords"></table>
            </div>
        </div>
    </div>



    <script type="text/html" id="barToEdit">
        <div class="layui-btn-group">
            <button class="layui-btn layui-btn-xs layui-btn-primary" lay-event="todelete">
                <i class="layui-icon layui-icon-delete"></i>
            </button>
            <button class="layui-btn layui-btn-xs layui-btn-primary" lay-event="toitem">
                <i class="layui-icon layui-icon-list"></i>
            </button>

        </div>
    </script>

    <script type="text/html" id="baritemedit">
        <a class="layui-btn layui-btn-xs" lay-event="toitemedit"><i class="jhyicon jhy-icon-editor"></i></a>
    </script>

    <div id="diveditkeywordsitem" style="display:none;">

        <form class="layui-form" action="" style="margin-right:50px;margin-top:10px;" id="formkeywordsitem" lay-filter="formkeywordsitem">
            <div class="layui-form-item">
                <label class="layui-form-label">消息标题</label>
                <div class="layui-input-block">
                    <input type="text" name="newstitle" id="newstitle" placeholder="图文消息标题" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">消息描述</label>
                <div class="layui-input-block">
                    <input type="text" name="newsdescription" id="newsdescription" placeholder="图文消息描述" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">图片地址</label>
                <div class="layui-input-block">
                    <input type="text" name="newspicurl" id="newspicurl" placeholder="图文图片地址" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">跳转链接</label>
                <div class="layui-input-block">
                    <input type="text" name="newsurl" id="newsurl" placeholder="图文跳转链接" autocomplete="off" class="layui-input">
                </div>
            </div>
        </form>
    </div>



    <script src="/Plugin/layui/layui.js"></script>
    <script src="keywords.js"></script>
</body>
</html>